<?php
/**
 * @version     CBE Template default View User default_document.php 2009.08.01
 * @package		CommunityBuilderEnhanced for Joomla 1.6
 * @subpackage 	Komponente
 * @author 		CBE Entwicklerteam
 * @link		http://www.joomla-cbe.de
 * @copyright 	Copyright (C) 2005 - 2009 Open Source Matters, Inc. All rights reserved.
 * @license     GNU/GPL
 */
// No direct access
defined('_JEXEC') or die('Restricted access');
$document = & JFactory::getDocument();
$document->setTitle(JText::_('CBE_ADMINISTRATOR') . ' - ' . JText::_('CBE_USER_EDITING'));
$document->addScriptDeclaration("
function submitbutton(task)
{
	if (task == 'user.cancel' || document.formvalidator.isValid(document.adminForm)) {
		submitform(task);
	} else {
		alert('".JText::_("CBE_SOME_VALUES_ARE_UNACCEPTABLE")."');
		return false;
	}
}
");
